lib/repo: Omit deltas from the summary file if there are none
authorPhilip Withnall <withnall@endlessm.com>
Wed, 7 Jun 2017 13:32:29 +0000 (14:32 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 7 Jun 2017 16:55:35 +0000 (16:55 +0000)
commit59ffce73c8c386f70c850f318934f1581ef05e7a
treecc16da25a68c94e094bc69a05a3aaf816fd5008a
parent7ce6777028953457c1f4125c48e6dc99a37949fc
lib/repo: Omit deltas from the summary file if there are none

If there are no deltas to be listed in the summary file, don’t bother
including the key for them in the additional metadata section of the
file. This saves a few bytes in some cases.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #911
Approved by: cgwalters
src/libostree/ostree-repo.c
tests/test-summary-view.sh